import 'package:flutter_house_manager/constants/index.dart';
import 'package:flutter_house_manager/utils/RequestDio.dart';

Future<dynamic> getHouseListAPI() => requestDio.get(HTTP_PATH.HOUSE_LIST);

Future<void> addHouseAPI(Map<String, dynamic> data) =>
    requestDio.post(HTTP_PATH.HOUSE_LIST, data: data);

Future<dynamic> getHouseDetailAPI(String id) =>
    requestDio.get('${HTTP_PATH.HOUSE_LIST}/$id');

Future<void> delHouseAPI(String id) =>
    requestDio.delete('${HTTP_PATH.HOUSE_LIST}/$id');
